package cn.itsource.pethome.base.mapper;

import cn.itsource.pethome.base.query.BaseQuery;

import java.util.List;

/**
 * @Author:R
 * @Date:2023/1/3 17:58
 * Description
 */
public interface BaseMapper<T> {
    //查询全部
    List<T> findAll();

    //查询一条
    T findOne(Long id);

    //高级查询
    List<T> findQuery(BaseQuery query);

    //查询总页数
    Long countPage(BaseQuery query);

    void add(T t);

    void delete(Long id);

    void update(T t);

    //批量删除
    void batchDel(List<Long> ids);
}
